<?php
/********************************************************/
/* Module Name:  search_frm.php						    */
/* Description: display the search form					*/
/* Written by: Maria Cielo Carreno							*/
/********************************************************/
?>

<html>
 <head>
 <link href="default.css" rel="stylesheet" type="text/css" />
 <title>Open New Case</title>
 </head>
 <body>
<div id="fulladmin">
<div style ='width: 550px; margin: 180px auto 0;'> 
<table border='1' align="center"><tr><th>
 <center><h1>Search Case</h1><br>
<table border="0">
<tr><td>
<?php
session_start();
//If your session isn't valid, it returns you to the login screen for protection
if(empty($_SESSION['myusername'])){
 header("location:main_login.php");
}
if(empty($_SESSION['seedval'])){
 header("location:main_login.php");
}
//echo $_SESSION['myusername'];
if($_GET['id'] != $_SESSION['seedval'])
{
		die('security breakage');
}

echo '<form action="gosearch.php" method="post">';
echo '<table border="0" align="center">';
echo '<input type="hidden" name="Id" value="'.$_SESSION['seedval'].'">';
echo '<tr><td>Search by </td><td></td></tr>';
echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="field" value="caseNo" checked/><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#555E4F">Case Number (e.g. MAN-001 or MAN-)</font></td></tr>';
echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="field" value="mediatorName" /><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#555E4F">Mediator (e.g. Raul) </font></td></tr>';
echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="field" value="Ndescription" /><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#555E4F">Nature of Case (e.g. Child Custody)</font></td></tr>';
echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="field" value="Date" /><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#555E4F">Date Range (format: YY/MM/DD - YY/MM/DD e.g. 12/01/01 - 12/03/01)</font></td></tr>';
echo '</table><br>';
echo '<table border="0" aligh="center">';
echo '<tr><td><input type="text" name="find" size="40"/><input type="submit" name="search" value="Search" /></td></tr>';
echo '<input type="hidden" name="searching" value="yes" />';
echo '</table>';
echo '</form>';
echo '</div><br></td></table>';
echo '</div></th></tr></table></div>';
echo '<div id="footer"><center><br>Return to main <a href="dashboard.php"><font color="red">Dashboard</font></a>, or you can <a href="log_out.php?id='.$_SESSION['userid'].'"><font color="red">Log Out</font></a></center></div>';


?>
</body>
</html>
